<?php

namespace App\Http\Controllers\Home;

use App\Model\WineProduct;
use Illuminate\Support\Facades\DB;

class DrinkFocusController extends BaseController
{
    public function index()
    {
        $items = DB::table('wine_focus_picture')->where('weight','>',0)->whereNull('deleted_at')
            ->orderBy('weight','desc')
            ->select('id','title','pic','obj_id','type')
            ->get();

        return $this->success($items);
    }
}
